package test;

import org.apache.ibatis.session.SqlSession;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import com.wzd.springmvc.dao.UserDao;
import com.wzd.springmvc.entity.UserEntity;

import testUntil.SqlSessionConnection;

public class testUnit {

	@Autowired
	private UserDao mapper;

	@Test
	public void selectUser() {
		SqlSession session = SqlSessionConnection.getSqlseeeion();
		UserDao mapper = (UserDao) session.getMapper(UserDao.class);
		UserEntity userentity = mapper.selectUser("1");
		System.out.println(userentity.toString());
	}
}